package com.hightrast.service.controller;


import com.hightrast.service.api.baseEntity.R;
import com.hightrast.service.api.domain.qo.rastVendor.AddUserVendorQo;
import com.hightrast.service.service.IRastUserVendorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 用户角色关联表 前端控制器
 * </p>
 *
 * @author hx
 * @since 2025-01-11
 */
@RestController
@RequestMapping("/api/rast-user-vendor")
@Api(tags = "用户品牌")
public class RastUserVendorController {

    @Resource
    IRastUserVendorService userVendorService;


    @ApiOperation("用户绑定、修改品牌")
    @PostMapping("/saveUpdateVendorUser")
    public R<Void> saveUpdateVendorUser(@RequestBody @Validated AddUserVendorQo qo) {
        userVendorService.saveUpdateVendorUser(qo);
        return R.success();
    }
}
